package com.ostrich.cloud.ostrichManagerWeb.client;

import com.ostrich.cloud.common.result.Result;
import com.ostrich.cloud.ostrichManagerWeb.client.param.GetGoodsOnly;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;
import javax.validation.Valid;


@FeignClient(contextId = "goodsManagerClient",name="ostrichManagerWeb")
public interface GoodsWebManagerClient {
    @PostMapping("getGoodsOnly")
    @ApiOperation("查看单个店家商品")
    public Result getGoodsOnly(@RequestBody @Valid GetGoodsOnly getGoodsOnly);
    @GetMapping("getAllGoods")
    @ApiOperation("查看全部商家商品")
    public Result getAllGoods(@RequestParam("current") Integer current,@RequestParam("size")Integer size);




}
